home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _RuntimeInstaller_mx_managers_SystemManager.as < prev    next >
Text File  |  2008-10-29  |  4KB  |  75 lines

  1. package
  2. {
  3.    import flash.system.ApplicationDomain;
  4.    import mx.core.EmbeddedFontRegistry;
  5.    import mx.core.IFlexModule;
  6.    import mx.core.IFlexModuleFactory;
  7.    import mx.managers.SystemManager;
  8.    
  9.    public class _RuntimeInstaller_mx_managers_SystemManager extends SystemManager implements IFlexModuleFactory
  10.    {
  11.        
  12.       
  13.       public function _RuntimeInstaller_mx_managers_SystemManager()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       override public function create(... rest) : Object
  19.       {
  20.          if(rest.length > 0 && !(rest[0] is String))
  21.          {
  22.             return super.create.apply(this,rest);
  23.          }
  24.          var _loc2_:String = rest.length == 0 ? "RuntimeInstaller" : String(rest[0]);
  25.          var _loc3_:Class = Class(getDefinitionByName(_loc2_));
  26.          if(!_loc3_)
  27.          {
  28.             return null;
  29.          }
  30.          var _loc4_:Object;
  31.          if((_loc4_ = new _loc3_()) is IFlexModule)
  32.          {
  33.             IFlexModule(_loc4_).moduleFactory = this;
  34.          }
  35.          if(rest.length == 0)
  36.          {
  37.             EmbeddedFontRegistry.registerFonts(this.info()["fonts"],this);
  38.          }
  39.          return _loc4_;
  40.       }
  41.       
  42.       override public function info() : Object
  43.       {
  44.          return {
  45.             "applicationComplete":"onApplicationComplete()",
  46.             "compiledLocales":["en_US","de","es","fr","it","ja","ko","pt","ru","zh_Hans","zh_Hant","cs","nl","pl","sv","tr"],
  47.             "compiledResourceBundleNames":["CSS","EULA","RuntimeInstaller","collections","containers","controls","core","effects","skins","states","styles"],
  48.             "currentDomain":ApplicationDomain.currentDomain,
  49.             "fonts":{
  50.                "Myriad Pro":{
  51.                   "regular":true,
  52.                   "bold":false,
  53.                   "italic":false,
  54.                   "boldItalic":false
  55.                },
  56.                "Myriad Pro Bold":{
  57.                   "regular":true,
  58.                   "bold":false,
  59.                   "italic":false,
  60.                   "boldItalic":false
  61.                }
  62.             },
  63.             "height":"100%",
  64.             "horizontalScrollPolicy":"off",
  65.             "layout":"horizontal",
  66.             "mainClassName":"RuntimeInstaller",
  67.             "mixins":["_RuntimeInstaller_FlexInit","_macMinButtonStyle","_alertButtonStyleStyle","_ControlBarStyle","_ScrollBarStyle","_winMaxButtonStyle","_activeTabStyleStyle","_textAreaHScrollBarStyleStyle","_ToolTipStyle","_winCloseButtonStyle","_DragManagerStyle","_macCloseButtonStyle","_statusTextStyleStyle","_TextAreaStyle","_gripperSkinStyle","_comboDropdownStyle","_ListBaseStyle","_winRestoreButtonStyle","_HTMLStyle","_ProgressBarStyle","_textAreaVScrollBarStyleStyle","_ContainerStyle","_globalStyle","_linkButtonStyleStyle","_windowStatusStyle","_windowStylesStyle","_PanelStyle","_activeButtonStyleStyle","_ApplicationControlBarStyle","_errorTipStyle","_richTextEditorTextAreaStyleStyle","_todayStyleStyle","_CursorManagerStyle","_TextInputStyle","_dateFieldPopupStyle","_plainStyle","_dataGridStylesStyle","_winMinButtonStyle","_macMaxButtonStyle","_ApplicationStyle","_SWFLoaderStyle","_headerDateTextStyle","_ButtonStyle","_popUpMenuStyle","_titleTextStyleStyle","_swatchPanelTextFieldStyle","_opaquePanelStyle","_weekDayStyleStyle","_headerDragProxyStyleStyle","_EULAWatcherSetupUtil","_RuntimeInstallerWatcherSetupUtil","_InstalledAppItemRendererWatcherSetupUtil"],
  68.             "preinitialize":"onPreInitialize()",
  69.             "verticalScrollPolicy":"off",
  70.             "width":"100%"
  71.          };
  72.       }
  73.    }
  74. }
  75.